package com.qef.com.mmovie.entity;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;
import java.util.List;

/**
 * Created by feq on 2017/4/8.
 */

public class VVIdeoDetailsEntity implements Parcelable {

    /**
     * status : 0
     * msg : OK
     * data : {"postid":"51408","title":"你和我一样在这个世界迷失了吗？","app_fu_title":"","wx_small_app_title":"你和我一样在这个世界迷失了吗？","intro":"谁也不知道自己生命的最后一刻是何场景？但毫无疑问我们都会在最后时刻，秒速回顾自己的一生。这则动画的主人公因浇花踩到香蕉皮而从顶楼坠落，惊恐、无奈，抑或抱怨上帝把自己带走得太早？想到自己余下的生命，还是数十年如一日般在办公室枯燥地过活，他最后竟欣然愉快地接受自己的死亡。 \n\n短片《降落》（In The Fall）充满美式黑色幽默，又带有中式\u201c生亦何欢，死亦何苦\u201d的人生哲思。黑白手绘简约画风以映衬生命的质地，一部幽默中带有严肃主题的精彩动画。 \n\n 伦敦导演Steve Cutts毕业于萨里艺术与美术设计学院，现在萨里创建了自己的工作室，身兼插画师与雕塑师，除了这些技能，导演也在扩展自己在网页设计图形和动画方面的知识。","count_comment":"57","is_album":"0","is_collect":"0","content":{"video":[{"image":"http://cs.vmoiver.com/Uploads/cover/2017-03-23/58d382923320f_cut.jpeg","title":"你和我一样在这个世界迷失了吗？","duration":"263","source_link":"http://v.youku.com/v_show/id_XMjY1Nzg0MDM0OA==.html","filesize":"98603473","resolution":"1920x1080","bitrate":"3824","qiniu_url":"http://qiniu.vmovier.vmoviercdn.com/58d397e998268.mp4","progressive":[{"profile_name":"1080P","qiniu_url":"http://qiniu.vmovier.vmoviercdn.com/58d397e998268.mp4","filesize":"98603473","duration":"195","bitrate":"3824","width":"1920","height":"1080"},{"profile_name":"高清","qiniu_url":"http://qiniu.vmovier.vmoviercdn.com/58d397e98c156.mp4","filesize":"96660360","duration":"195","bitrate":"3746","width":"1280","height":"720"},{"profile_name":"标清","qiniu_url":"http://qiniu.vmovier.vmoviercdn.com/58d397e981d65.mp4","filesize":"38752725","duration":"195","bitrate":"1425","width":"960","height":"540"}]}]},"image":"http://cs.vmoiver.com/Uploads/cover/2017-03-23/58d382923320f_cut.jpeg","rating":"8.9","publish_time":"1490371440","count_like":"1952","count_share":"3289","cate":["动画"],"share_link":{"sweibo":"http://h5.vmovier.com/index.html?id=51408&_vfrom=VmovierApp_sweibo","weixin":"http://h5.vmovier.com/index.html?id=51408&_vfrom=VmovierApp_weixin","qzone":"http://h5.vmovier.com/index.html?id=51408&_vfrom=VmovierApp_qzone","qq":"http://h5.vmovier.com/index.html?id=51408&_vfrom=VmovierApp_qq"},"share_title":"你和我一样在这个世界迷失了吗？ | V电影","tags":"","share_sub_title":"现代人挣不脱的精神枷锁","weibo_share_image":"http://service.vmoiver.com/h5/Imagick/vmovier_weibo_share?id=51408","index_intro":"现代人挣不脱的精神枷锁"}
     */

    private String status;
    private String msg;
    /**
     * postid : 51408
     * title : 你和我一样在这个世界迷失了吗？
     * app_fu_title :
     * wx_small_app_title : 你和我一样在这个世界迷失了吗？
     * intro : 谁也不知道自己生命的最后一刻是何场景？但毫无疑问我们都会在最后时刻，秒速回顾自己的一生。这则动画的主人公因浇花踩到香蕉皮而从顶楼坠落，惊恐、无奈，抑或抱怨上帝把自己带走得太早？想到自己余下的生命，还是数十年如一日般在办公室枯燥地过活，他最后竟欣然愉快地接受自己的死亡。
     * <p>
     * 短片《降落》（In The Fall）充满美式黑色幽默，又带有中式“生亦何欢，死亦何苦”的人生哲思。黑白手绘简约画风以映衬生命的质地，一部幽默中带有严肃主题的精彩动画。
     * <p>
     * 伦敦导演Steve Cutts毕业于萨里艺术与美术设计学院，现在萨里创建了自己的工作室，身兼插画师与雕塑师，除了这些技能，导演也在扩展自己在网页设计图形和动画方面的知识。
     * count_comment : 57
     * is_album : 0
     * is_collect : 0
     * content : {"video":[{"image":"http://cs.vmoiver.com/Uploads/cover/2017-03-23/58d382923320f_cut.jpeg","title":"你和我一样在这个世界迷失了吗？","duration":"263","source_link":"http://v.youku.com/v_show/id_XMjY1Nzg0MDM0OA==.html","filesize":"98603473","resolution":"1920x1080","bitrate":"3824","qiniu_url":"http://qiniu.vmovier.vmoviercdn.com/58d397e998268.mp4","progressive":[{"profile_name":"1080P","qiniu_url":"http://qiniu.vmovier.vmoviercdn.com/58d397e998268.mp4","filesize":"98603473","duration":"195","bitrate":"3824","width":"1920","height":"1080"},{"profile_name":"高清","qiniu_url":"http://qiniu.vmovier.vmoviercdn.com/58d397e98c156.mp4","filesize":"96660360","duration":"195","bitrate":"3746","width":"1280","height":"720"},{"profile_name":"标清","qiniu_url":"http://qiniu.vmovier.vmoviercdn.com/58d397e981d65.mp4","filesize":"38752725","duration":"195","bitrate":"1425","width":"960","height":"540"}]}]}
     * image : http://cs.vmoiver.com/Uploads/cover/2017-03-23/58d382923320f_cut.jpeg
     * rating : 8.9
     * publish_time : 1490371440
     * count_like : 1952
     * count_share : 3289
     * cate : ["动画"]
     * share_link : {"sweibo":"http://h5.vmovier.com/index.html?id=51408&_vfrom=VmovierApp_sweibo","weixin":"http://h5.vmovier.com/index.html?id=51408&_vfrom=VmovierApp_weixin","qzone":"http://h5.vmovier.com/index.html?id=51408&_vfrom=VmovierApp_qzone","qq":"http://h5.vmovier.com/index.html?id=51408&_vfrom=VmovierApp_qq"}
     * share_title : 你和我一样在这个世界迷失了吗？ | V电影
     * tags :
     * share_sub_title : 现代人挣不脱的精神枷锁
     * weibo_share_image : http://service.vmoiver.com/h5/Imagick/vmovier_weibo_share?id=51408
     * index_intro : 现代人挣不脱的精神枷锁
     */

    private DataBean data;


    protected VVIdeoDetailsEntity(Parcel in) {
        status = in.readString();
        msg = in.readString();
        data = in.readParcelable(DataBean.class.getClassLoader());
    }


    public static final Creator<VVIdeoDetailsEntity> CREATOR = new Creator<VVIdeoDetailsEntity>() {
        @Override
        public VVIdeoDetailsEntity createFromParcel(Parcel in) {
            return new VVIdeoDetailsEntity(in);
        }

        @Override
        public VVIdeoDetailsEntity[] newArray(int size) {
            return new VVIdeoDetailsEntity[size];
        }
    };

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(status);
        parcel.writeString(msg);
        parcel.writeParcelable(data, i);
    }

    public static class DataBean implements Parcelable {
        private String postid;
        private String title;
        private String app_fu_title;
        private String wx_small_app_title;
        private String intro;
        private String count_comment;
        private String is_album;
        private String is_collect;
        private ContentBean content;
        private String image;
        private String rating;
        private String publish_time;
        private String count_like;
        private String count_share;
        /**
         * sweibo : http://h5.vmovier.com/index.html?id=51408&_vfrom=VmovierApp_sweibo
         * weixin : http://h5.vmovier.com/index.html?id=51408&_vfrom=VmovierApp_weixin
         * qzone : http://h5.vmovier.com/index.html?id=51408&_vfrom=VmovierApp_qzone
         * qq : http://h5.vmovier.com/index.html?id=51408&_vfrom=VmovierApp_qq
         */

        private ShareLinkBean share_link;
        private String share_title;
        private String tags;
        private String share_sub_title;
        private String weibo_share_image;
        private String index_intro;
        private List<String> cate;

        protected DataBean(Parcel in) {
            postid = in.readString();
            title = in.readString();
            app_fu_title = in.readString();
            wx_small_app_title = in.readString();
            intro = in.readString();
            count_comment = in.readString();
            is_album = in.readString();
            is_collect = in.readString();
            image = in.readString();
            rating = in.readString();
            publish_time = in.readString();
            count_like = in.readString();
            count_share = in.readString();
            share_title = in.readString();
            tags = in.readString();
            share_sub_title = in.readString();
            weibo_share_image = in.readString();
            index_intro = in.readString();
            cate = in.createStringArrayList();
        }

        public static final Creator<DataBean> CREATOR = new Creator<DataBean>() {
            @Override
            public DataBean createFromParcel(Parcel in) {
                return new DataBean(in);
            }

            @Override
            public DataBean[] newArray(int size) {
                return new DataBean[size];
            }
        };

        public String getPostid() {
            return postid;
        }

        public void setPostid(String postid) {
            this.postid = postid;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getApp_fu_title() {
            return app_fu_title;
        }

        public void setApp_fu_title(String app_fu_title) {
            this.app_fu_title = app_fu_title;
        }

        public String getWx_small_app_title() {
            return wx_small_app_title;
        }

        public void setWx_small_app_title(String wx_small_app_title) {
            this.wx_small_app_title = wx_small_app_title;
        }

        public String getIntro() {
            return intro;
        }

        public void setIntro(String intro) {
            this.intro = intro;
        }

        public String getCount_comment() {
            return count_comment;
        }

        public void setCount_comment(String count_comment) {
            this.count_comment = count_comment;
        }

        public String getIs_album() {
            return is_album;
        }

        public void setIs_album(String is_album) {
            this.is_album = is_album;
        }

        public String getIs_collect() {
            return is_collect;
        }

        public void setIs_collect(String is_collect) {
            this.is_collect = is_collect;
        }

        public ContentBean getContent() {
            return content;
        }

        public void setContent(ContentBean content) {
            this.content = content;
        }

        public String getImage() {
            return image;
        }

        public void setImage(String image) {
            this.image = image;
        }

        public String getRating() {
            return rating;
        }

        public void setRating(String rating) {
            this.rating = rating;
        }

        public String getPublish_time() {
            return publish_time;
        }

        public void setPublish_time(String publish_time) {
            this.publish_time = publish_time;
        }

        public String getCount_like() {
            return count_like;
        }

        public void setCount_like(String count_like) {
            this.count_like = count_like;
        }

        public String getCount_share() {
            return count_share;
        }

        public void setCount_share(String count_share) {
            this.count_share = count_share;
        }

        public ShareLinkBean getShare_link() {
            return share_link;
        }

        public void setShare_link(ShareLinkBean share_link) {
            this.share_link = share_link;
        }

        public String getShare_title() {
            return share_title;
        }

        public void setShare_title(String share_title) {
            this.share_title = share_title;
        }

        public String getTags() {
            return tags;
        }

        public void setTags(String tags) {
            this.tags = tags;
        }

        public String getShare_sub_title() {
            return share_sub_title;
        }

        public void setShare_sub_title(String share_sub_title) {
            this.share_sub_title = share_sub_title;
        }

        public String getWeibo_share_image() {
            return weibo_share_image;
        }

        public void setWeibo_share_image(String weibo_share_image) {
            this.weibo_share_image = weibo_share_image;
        }

        public String getIndex_intro() {
            return index_intro;
        }

        public void setIndex_intro(String index_intro) {
            this.index_intro = index_intro;
        }

        public List<String> getCate() {
            return cate;
        }

        public void setCate(List<String> cate) {
            this.cate = cate;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel parcel, int i) {
            parcel.writeString(postid);
            parcel.writeString(title);
            parcel.writeString(app_fu_title);
            parcel.writeString(wx_small_app_title);
            parcel.writeString(intro);
            parcel.writeString(count_comment);
            parcel.writeString(is_album);
            parcel.writeString(is_collect);
            parcel.writeString(image);
            parcel.writeString(rating);
            parcel.writeString(publish_time);
            parcel.writeString(count_like);
            parcel.writeString(count_share);
            parcel.writeString(share_title);
            parcel.writeString(tags);
            parcel.writeString(share_sub_title);
            parcel.writeString(weibo_share_image);
            parcel.writeString(index_intro);
            parcel.writeStringList(cate);
        }

        public static class ContentBean {
            /**
             * image : http://cs.vmoiver.com/Uploads/cover/2017-03-23/58d382923320f_cut.jpeg
             * title : 你和我一样在这个世界迷失了吗？
             * duration : 263
             * source_link : http://v.youku.com/v_show/id_XMjY1Nzg0MDM0OA==.html
             * filesize : 98603473
             * resolution : 1920x1080
             * bitrate : 3824
             * qiniu_url : http://qiniu.vmovier.vmoviercdn.com/58d397e998268.mp4
             * progressive : [{"profile_name":"1080P","qiniu_url":"http://qiniu.vmovier.vmoviercdn.com/58d397e998268.mp4","filesize":"98603473","duration":"195","bitrate":"3824","width":"1920","height":"1080"},{"profile_name":"高清","qiniu_url":"http://qiniu.vmovier.vmoviercdn.com/58d397e98c156.mp4","filesize":"96660360","duration":"195","bitrate":"3746","width":"1280","height":"720"},{"profile_name":"标清","qiniu_url":"http://qiniu.vmovier.vmoviercdn.com/58d397e981d65.mp4","filesize":"38752725","duration":"195","bitrate":"1425","width":"960","height":"540"}]
             */

            private List<VideoBean> video;

            public List<VideoBean> getVideo() {
                return video;
            }

            public void setVideo(List<VideoBean> video) {
                this.video = video;
            }

            public static class VideoBean {
                private String image;
                private String title;
                private String duration;
                private String source_link;
                private String filesize;
                private String resolution;
                private String bitrate;
                private String qiniu_url;
                /**
                 * profile_name : 1080P
                 * qiniu_url : http://qiniu.vmovier.vmoviercdn.com/58d397e998268.mp4
                 * filesize : 98603473
                 * duration : 195
                 * bitrate : 3824
                 * width : 1920
                 * height : 1080
                 */

                private List<ProgressiveBean> progressive;

                public String getImage() {
                    return image;
                }

                public void setImage(String image) {
                    this.image = image;
                }

                public String getTitle() {
                    return title;
                }

                public void setTitle(String title) {
                    this.title = title;
                }

                public String getDuration() {
                    return duration;
                }

                public void setDuration(String duration) {
                    this.duration = duration;
                }

                public String getSource_link() {
                    return source_link;
                }

                public void setSource_link(String source_link) {
                    this.source_link = source_link;
                }

                public String getFilesize() {
                    return filesize;
                }

                public void setFilesize(String filesize) {
                    this.filesize = filesize;
                }

                public String getResolution() {
                    return resolution;
                }

                public void setResolution(String resolution) {
                    this.resolution = resolution;
                }

                public String getBitrate() {
                    return bitrate;
                }

                public void setBitrate(String bitrate) {
                    this.bitrate = bitrate;
                }

                public String getQiniu_url() {
                    return qiniu_url;
                }

                public void setQiniu_url(String qiniu_url) {
                    this.qiniu_url = qiniu_url;
                }

                public List<ProgressiveBean> getProgressive() {
                    return progressive;
                }

                public void setProgressive(List<ProgressiveBean> progressive) {
                    this.progressive = progressive;
                }

                public static class ProgressiveBean {
                    private String profile_name;
                    private String qiniu_url;
                    private String filesize;
                    private String duration;
                    private String bitrate;
                    private String width;
                    private String height;

                    public String getProfile_name() {
                        return profile_name;
                    }

                    public void setProfile_name(String profile_name) {
                        this.profile_name = profile_name;
                    }

                    public String getQiniu_url() {
                        return qiniu_url;
                    }

                    public void setQiniu_url(String qiniu_url) {
                        this.qiniu_url = qiniu_url;
                    }

                    public String getFilesize() {
                        return filesize;
                    }

                    public void setFilesize(String filesize) {
                        this.filesize = filesize;
                    }

                    public String getDuration() {
                        return duration;
                    }

                    public void setDuration(String duration) {
                        this.duration = duration;
                    }

                    public String getBitrate() {
                        return bitrate;
                    }

                    public void setBitrate(String bitrate) {
                        this.bitrate = bitrate;
                    }

                    public String getWidth() {
                        return width;
                    }

                    public void setWidth(String width) {
                        this.width = width;
                    }

                    public String getHeight() {
                        return height;
                    }

                    public void setHeight(String height) {
                        this.height = height;
                    }
                }
            }
        }

        public static class ShareLinkBean {
            private String sweibo;
            private String weixin;
            private String qzone;
            private String qq;

            public String getSweibo() {
                return sweibo;
            }

            public void setSweibo(String sweibo) {
                this.sweibo = sweibo;
            }

            public String getWeixin() {
                return weixin;
            }

            public void setWeixin(String weixin) {
                this.weixin = weixin;
            }

            public String getQzone() {
                return qzone;
            }

            public void setQzone(String qzone) {
                this.qzone = qzone;
            }

            public String getQq() {
                return qq;
            }

            public void setQq(String qq) {
                this.qq = qq;
            }
        }
    }
}
